package com.shoeshopping.vo.zx;

import com.shoeshopping.entity.Goods;
import com.shoeshopping.entity.OrderItem;

public class VoOrderItemAdmin {
	private String id;
	private String goodsName;
	private  int num;
	private double price;
	
	public VoOrderItemAdmin() {
		super();
	}
	public VoOrderItemAdmin(OrderItem orderItem) {
		id = orderItem.getId();
		goodsName = orderItem.getGoods().getName();
		num = orderItem.getNum();
		price = orderItem.getGoods().getPrice();
	}

	public VoOrderItemAdmin(String id, String goodsName, int num, double price) {
		super();
		this.id = id;
		this.goodsName = goodsName;
		this.num = num;
		this.price = price;
	}

	
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	
}
